package com.liao.badminton.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liao.badminton.code.*;
import com.liao.badminton.dto.StatDto;
import com.liao.badminton.entity.BoutStat;
import com.liao.badminton.dto.BoutStatDto;
import com.liao.badminton.vo.BoutStatVo;
import com.liao.badminton.vo.RankStatVo;
import com.liao.badminton.vo.StatVo;

import java.util.List;
import java.util.Map;

/**
* @author liaocheng
* @date 2024-10-31
* description:录入对局统计表
*/
public interface BoutStatService extends IService<BoutStat> {
	/**
     * 新增
     */
	 ResponseRest saveBoutStat(BoutStatDto param)throws ProjectException;
	/**
     * 修改
     */
	 ResponseRest updateBoutStat(BoutStatDto param)throws ProjectException;
	/**
     * 查询列表
     */
	 ResponseRest findBoutStatByPageParam(PageParam<BoutStatDto> PageParam)throws ProjectException;
    /**
    * 查询详情
    */
    ResponseRest findDetail(BoutStatDto param)throws ProjectException;
	/**
     * 删除
     */
	 ResponseRest deletesBoutStat(BoutStatDto param)throws ProjectException;

	List<BoutStat> findByDto(BoutStatDto param);

	void deleteByImportRecordId(Long importRecordId)throws ProjectException;

    void deleteByImportRecordIdHard(Long importRecordId);

	ResponseRest<StatVo> personalStat(StatDto param);

	ResponseRest<RankStatVo> rankList(StatDto param);

    ResponseRest<BoutStatVo> findByImportIdUserId(BoutStatDto param);
}
